/**
 * Company : Thai Informatic System Co., Ltd.
 * Created By : Chatree Siangklom
 * Created On : Jun 13, 2013  1:37:00 PM 
 * e-Mail : dr_chatree@hotmail.com
 * Mobile Phone : (+66) 087-921-5115
 * Package Name : apps.business.process.construction.memo.site
 * File Name : SiteMemoIntegrationProcessing.java
 * TODO
 */
package apps.business.process.construction.memo.site;

import org.apache.log4j.Logger;

import apps.business.process.SyncProcessorCommons;
import apps.business.process.construction.memo.deduction.SiteDeductionProcession;

/**
 * @author chatree
 *
 */
public class SiteMemoIntegrationProcessing extends SyncProcessorCommons{

	private static final Logger log = Logger.getLogger(SiteMemoIntegrationProcessing.class);
	
	
	/**
	 * 
	 * @param company
	 * @param project
	 * @param documentNo
	 * @param status
	 * @param syncIsstaging is fix value = null
	 * @throws Exception
	 */
	public void Processing(String company, String project, String documentNo, String status, String syncIsstaging) throws Exception {
		try{			
			System.out.println("SiteMemoIntegrationProcessing start --->");
			
			try{
				new SiteMemoProcessing().Processing(company, project, documentNo, status, syncIsstaging);
			}catch(Exception e){
				e.printStackTrace();
			}
			
			try{
				new SiteDeductionProcession().Processing(company, project, documentNo, status, syncIsstaging);
				
			}catch(Exception e){
				e.printStackTrace();
			}
			
			System.out.println("SiteMemoIntegrationProcessing end --->");
			
		}catch(Exception e){
			e.printStackTrace();
			log.error(e.getMessage());
		}
	}
	

	public static void main(String[] args) {
		
		
	}

}
